package com.spzx.order.api.domain;





import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.spzx.common.core.web.domain.BaseEntity;
import lombok.Getter;
import lombok.Setter;

import java.math.BigDecimal;
import java.util.Date;
import java.util.List;


/**
 * <p>
 * 订单
 * </p>
 *
 * @author spzx
 * @since 2024-12-26
 */
@Getter
@Setter
@TableName("order_info")
public class OrderInfo extends BaseEntity {

    private static final long serialVersionUID = 1L;

    private Long userId;

    private String nickName;

    private String orderNo;

    private Long couponId;

    private BigDecimal totalAmount;

    private BigDecimal couponAmount;

    private BigDecimal originalTotalAmount;

    private BigDecimal feightFee;

    //    private Byte orderStatus;
    private Integer orderStatus;

    private String receiverName;

    private String receiverPhone;

    private String receiverTagName;

    private String receiverProvince;

    private String receiverCity;

    /*
     * 区县
     */
    private String receiverDistrict;

    /*
     * 详细地址
     */
    private String receiverAddress;

    /*
     * 支付时间
     */
    private Date paymentTime;

    /*
     * 发货时间
     */
    private Date deliveryTime;

    /*
     * 确认收货时间
     */
    private Date receiveTime;


    /*
     * 订单取消时间
     */
    private Date cancelTime;

    /*
     * 订单取消原因
     */
    private String cancelReason;

    @TableField(exist = false)
    private List<OrderItem> orderItemList;
}
